package com.yy.controller;

import com.yy.param.StudentParam;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lyy
 * @date 2021/12/09
 */
@RestController
@RequestMapping("/student")
public class StudentController {

    @PostMapping("/save")
    public String save(@RequestBody @Validated StudentParam param){
        return param.toString();
    }

}
